package chapter04;
abstract class Animal14{
    abstract void shout();
}
class Cat extends Animal14{
    void shout(){
        System.out.println("喵~~喵~~喵");
    }
}
class Dog14 extends Animal14{
    void shout(){
        System.out.println("汪汪······");
    }
}
public class example14 {
    public static void main(String[] args) {
        Animal14 cat = new Cat();
        Animal dog = new Dog();
        cat.shout();
        dog.shout();
    }
}